package cn.niit.pm.service;


import cn.niit.pm.entity.Recruit;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 招聘管理
 * @author xiaomi
 */

public interface RecruitService {
    /*
     *
     * 根据查询条件（已封装为recruit对象），查询符合所有条件的招聘信息
     * @param recruit
     * @return

     */

    List<Recruit> selectListByRecruit(Recruit recruit);

    /**
     * 添加招聘信息
     * @param recruit
     * @return
     */

    int add(Recruit recruit);

    /**
     * 根据招聘ID查询招聘信息
     * @param recruitId
     * @return
     */

    Recruit selectByrecruitId(Integer recruitId);

    /**
     * 更新招聘信息
     * @param recruit
     * @return
     */

    int updateRecruit(Recruit recruit);

    /**
     * 删除招聘计划
     * @param recruitId
     * @return
     */

    int deleteByRecruitId(Integer recruitId);
}
